package com.palace.saw.module.app.controller.admin.configdata.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 配置项数据新增/修改 Request VO")
@Data
public class ConfigDataSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28039")
    private Long id;

    @Schema(description = "配置排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "配置排序不能为空")
    private Integer sort;

    @Schema(description = "配置项名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配置项名称不能为空")
    private String label;

    @Schema(description = "配置项值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配置项值不能为空")
    private String value;

    @Schema(description = "配置类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "配置类型不能为空")
    private String dictType;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态（0正常 1停用）不能为空")
    private Integer status;

    @Schema(description = "配置含义说明", example = "你猜")
    private String remark;

}